#include "bg_global.h"
#include "q_shared.h"
#include "bg_gamex86funcs.h"

__declspec(dllexport) void trap_Argv2(int n, char *buffer)
{
	if(!buffer)
	{
		return;
	}
	else
	{
		strcpy(buffer, CG_Argv(n));
	}
}

__declspec(dllexport) const char *trap_Argv(int n)
{
	// DO NOT USE ME! I CRASH!
	char buffer[1024];
	strcpy(buffer, CG_Argv(n));
	return buffer;
}